package com.xqboss.apps.domain.punch;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.xqboss.apps.domain.BaseTable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * <p>
 *     用户团队结算记录表
 * </p>
 * @author Trent
 * @date 2023/9/8
 */
@Data
@ApiModel
public class UserTeamSettleRecord extends BaseTable {

    @TableId(type = IdType.AUTO)
    private Long id;
    @ApiModelProperty("用户ID")
    private Long userId;
    @ApiModelProperty("队伍ID")
    private Integer teamId;
    @ApiModelProperty("队伍打卡统计ID")
    private Long teamPunchStatId;
    @ApiModelProperty("今日总收益（指用户今日打卡的收益总和）")
    private BigDecimal todayIncome;
    @ApiModelProperty("今日抽成收益（只争对于【队长-管理员】和【组长-主成员】存在）")
    private BigDecimal assemblyIncome;
    @ApiModelProperty("结算获得的增益")
    private BigDecimal settleIncome;
    @ApiModelProperty("打卡增益")
    private BigDecimal memberGain;
    @ApiModelProperty("结算日期")
    private LocalDate statDate;
    @ApiModelProperty("用户是否已读")
    private Boolean isRead;

}
